<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<body>
<div th:fragment="listTab">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>员工列表</h5>
        </div>
        <div class="ibox-content">
            <div class="row">
                <form id="userForm" th:action="@{/sys/user/list}" class="form-inline">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>员工名称：</label><input type="text" th:value="${name}" name="name"/>
                            </li>
                            <li>
                                <button class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</button>
                                <button class="btn btn-warning btn-rounded btn-sm" type="reset"><i class="fa fa-eraser"></i>&nbsp;重置</button>
                            </li>
                        </ul>
                    </div>

                   <!-- <div class="col-sm-3">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">员工名称
                                </button>
                            </div>
                            <input type="text" class="form-control" th:value="${name}" name="name"
                                   placeholder="员工名称" />
                            <input type="hidden" id="deptId" name="deptId">
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <button class="btn btn-primary btn-rounded btn-sm">
                            <i class="fa fa-search"></i>&nbsp;搜索
                        </button>
                    </div>-->
                </form>
            </div>
            <div class="row">
                <div class="btn-group hidden-xs toolbar" id="roleTableToolbar" role="group">
                    <a class="btn btn-outline btn-success btn-rounded" onclick="toAddUser()"
                       shiro:hasPermission="sys:user:save">
                        <i class="fa fa-plus"></i> 新增
                    </a>
                    <a class="btn btn-outline btn-success btn-rounded" onclick="toEditUser()">
                        <i class="fa fa-edit"></i> 编辑
                    </a>
                    <a class="btn btn-outline btn-danger btn-rounded" onclick="deleteUser()">
                        <i class="fa fa-remove"></i> 删除
                    </a>
                    <a class="btn btn-outline btn-danger btn-rounded" onclick="use()">
                        <i class="fa fa-edit"></i> 启用
                    </a>
                    <a class="btn btn-outline btn-danger btn-rounded" onclick="unUse()">
                        <i class="fa fa-edit"></i> 禁用
                    </a>
                    <a class="btn btn-outline btn-danger btn-rounded" onclick="resetPwd()">
                        <i class="fa fa-edit"></i> 重置密码
                    </a>
                </div>

                <!--<div class="tool-div" role="group">
                    <button shiro:hasPermission="sys:user:save" type="button"
                            class="btn btn-primary button-margin" onclick="toAddUser()">
                        <i class="fa fa-plus"></i>&nbsp;新增
                    </button>
                    <button shiro:hasPermission="sys:user:update" type="button"
                            class="btn btn-primary button-margin" onclick="toEditUser()">
                        <i class="fa fa-edit"></i>&nbsp;编辑
                    </button>
                    <button shiro:hasPermission="sys:user:delete" type="button"
                            class="btn btn-primary button-margin" onclick="deleteUser()">
                        <i class="fa fa-remove"></i>&nbsp;删除
                    </button>
                    <button shiro:hasPermission="sys:user:use" type="button"
                            class="btn btn-primary button-margin" onclick="use()">
                        <i class="fa fa-check-circle"></i>&nbsp;启用
                    </button>
                    <button shiro:hasPermission="sys:user:unuse" type="button"
                            class="btn btn-primary button-margin" onclick="unUse()">
                        <i class="fa fa-warning"></i>&nbsp;禁用
                    </button>
                    <button shiro:hasPermission="sys:user:resetpwd" type="button"
                            class="btn btn-primary button-margin" onclick="resetPwd()">
                        <i class="fa fa-refresh"></i>&nbsp;重置密码
                    </button>

                </div>-->
            </div>
            <table id="user">
            </table>
            <div id="userPager"></div>
        </div>
    </div>
</div>
</body>
</html>

